import { login } from './service';

export default {
	namespace: 'user',
	state: {},
	effects: {
		*login({ payload, callback }, { call }) {
			const data = yield call(login, payload);
			if (callback) callback(data);
		},
	},
	reducers: {},
};
